package com.zy.springSecurity.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AdminController {

    @GetMapping("/main.html")
    public String main() {
        return "main";
    }

    /*
错误的页面
     */
    @RequestMapping("/unauth.html")
    public String unauth() {
        return "unauth";
    }

    public static void main(String[] args) {
        System.out.println("====");
    }
}
